class Bomba
	attr_reader :x, :y
	def initialize(janela)
		@janela = janela
		@icon = Gosu::Image.new(@janela,'bomba.png',true)
		@y = rand(@janela.width)
		@x = 640
	end
	
	def update
		@x = @x - 10
		if @x < 0 then
			@x = 640 
			@y = rand(@janela.width)
		end
	end
	
	def draw
		@icon.draw(@x, @y, 3)
	end
end